Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the language L given by the regular ... Start Learning for Free
Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______. 

Note: This questions appeared as Numerical Answer Type.
  • a)
    3
  • b)
    4
  • c)
    5
  • d)
    6
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Consider the language L given by the regular expression (a + b) *b(a +...











NFA to DFA Conversion: 
In the STT below you can see 4 states are there but before confirming the ans lets try to minimize, It cant be minimized further because A goes to Nonfinal Nonfinal & AB goes to Final Final hence can not be merged. Similarly ∗AC goes NF NF & ∗ABC goes to F F hence can not be merged. Hence, 4 is the final answer.

View all questions of this test
Most Upvoted Answer
Consider the language L given by the regular expression (a + b) *b(a +...
Solution:

The given regular expression is (a b)*b(a b).

We need to find the smallest number of states needed in a DFA accepting L.

We can construct a DFA for L as follows:

1. Start with an initial state q0.
2. For each input symbol a, create a transition from q0 to a new state q1, labeled with a.
3. For each input symbol b, create a transition from q0 to q2, labeled with b.
4. For each input symbol a, create a transition from q1 to q2, labeled with a.
5. For each input symbol b, create a transition from q1 to q3, labeled with b.
6. For each input symbol a, create a transition from q2 to q1, labeled with a.
7. For each input symbol b, create a transition from q2 to q2, labeled with b.
8. For each input symbol a, create a transition from q3 to q2, labeled with a.
9. For each input symbol b, create a transition from q3 to q3, labeled with b.
10. Mark q3 as the final state.

The DFA constructed above has 4 states.

Therefore, the smallest number of states needed in a DFA accepting L is 4.

Hence, option B is the correct answer.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer?
Question Description
Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer?.
Solutions for Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the language L given by the regular expression (a + b) *b(a +b) over the alphabet {a, b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is ______.Note:This questions appeared as Numerical Answer Type.a)3b)4c)5d)6Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev